package com.copc.common.model.vo;

import com.copc.common.annotation.Validation;
import com.copc.common.constants.ValidConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: yuanbin
 * @date:Created in 2022/11/9 14:39
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EpolicyMasterVO {

    @ApiModelProperty(value = "交易流水号",required = true)
    @Validation(message = "transactionNo不可为空")
    private String transactionNo;

    @ApiModelProperty(value = "交易日期",required = true)
    @Validation(message = "transactionDate格式不正确",pattern = ValidConstants.DATE_VAILD)
    private String transactionDate;

    @ApiModelProperty(value = "交易时间",required = true)
    @Validation(message = "transactionTime格式不正确",pattern = ValidConstants.TIME_VAILD)
    private String transactionTime;

    @ApiModelProperty(value = "服务方代码",required = true)
    @Validation(message = "serverCode不可为空")
    private String serverCode;

    @ApiModelProperty(value = "客户方代码",required = true)
    @Validation(message = "clientCode不可为空")
    private String clientCode;

    @ApiModelProperty(value = "交易类型",required = true)
    @Validation(message = "transactionType不可为空")
    private String transactionType;

    @ApiModelProperty(value = "请求id")
    private long reqId;
    @Validation(message = "content不可为空")
    private ContentVO content;

}
